from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from coleman.products.models import Product
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns (
                        'django.views.generic.list_detail',
                        url(r'^$', 'object_list', 
                            {'queryset' : Product.objects.all()},
                            name = 'product_list'),
                        url(r'^(?P<slug>[-\w]+)/$', 'object_detail',
                            {'queryset' : Product.objects.all()},
                            name = 'product_detail'),)
urlpatterns += staticfiles_urlpatterns()